package com.zeei.ems.meet.hik;

import lombok.Data;

import java.util.List;

@Data
public class ListResponse<T> {

    private String code;
    private String msg;
    private ListData<T> data;


    public  class ListData<T> {
        Long total;
        Long pageNo;
        Long pageSize;
        Long totalPage;
        List<T> list;

        public ListData() {
        }

        public ListData(Long total, Long pageNo, Long pageSize, List<T> data) {
            this.total = total;
            this.pageNo = pageNo;
            this.pageSize = pageSize;
            this.list = list;
        }

        public Long getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(Long totalPage) {
            this.totalPage = totalPage;
        }

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public Long getPageNo() {
            return pageNo;
        }

        public void setPageNo(Long pageNo) {
            this.pageNo = pageNo;
        }

        public Long getPageSize() {
            return pageSize;
        }

        public void setPageSize(Long pageSize) {
            this.pageSize = pageSize;
        }

        public List<T> getList() {
            return list;
        }

        public void setList(List<T> list) {
            this.list = list;
        }

        @Override
        public String toString() {
            return "ListData{" +
                    "total=" + total +
                    ", pageNo=" + pageNo +
                    ", pageSize=" + pageSize +
                    ", totalPage=" + totalPage +
                    ", list=" + list +
                    '}';
        }
    }

}
